package payroll.trans;

import payroll.Employee;
import payroll.method.PaymentMethod;

public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction{

    public ChangeMethodTransaction(int empId) {
        super(empId);
       
    }

    @Override
    protected void dochange(Employee e){
        e.setPaymentMethod(getPaymentMethod());
    }

    protected abstract PaymentMethod getPaymentMethod();
}
